package com.heima.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.article.dtos.ArticleInfoDto;
import com.heima.model.article.mess.ArticleVisitStreamMess;
import com.heima.model.article.pojos.ApArticle;
import com.heima.model.article.dtos.ArticleHomeDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmChannel;
import org.springframework.stereotype.Service;

/**
 * @author rookie001
 * @creat 2023-06-05-13:55
 */
public interface ApArticleService extends IService<ApArticle> {

    ResponseResult load(Short lt, ArticleHomeDto dto);

    //保存图片
    ResponseResult saveArticle(ArticleDto dto);

    //加载文章数据回显
    ResponseResult loadArticleBehavior(ArticleInfoDto dto);

    //管理端修改同步更新app端频道
    void updateChannel(WmChannel wmChannel);

    //加载文章
    ResponseResult loadFirstPage(Short loadtypeLoadMore, ArticleHomeDto dto);

    //更新文章的分值  同时更新缓存中的热点文章数据
     void updateScore(ArticleVisitStreamMess mess);
}
